#include "HomePage.h"
#include <QStylePainter>
#include <QWindow>

HomePage::HomePage(QWidget* parent)
    : QWidget(parent)
{
	setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
}

void HomePage::paintEvent(QPaintEvent* event)
{
    QStylePainter painter(this);
    QImage img(":/qb/home.png");
    painter.drawImage(rect(), img);
}